/**
* 作者: clz
* 日期: 2025-04-14 00:38:32
* 备注: 战备运输中心
*/
package com.motu.monstercity.server.game.commondata.union;

import io.vertx.core.json.JsonObject;

public class UnionBusinessModel {
	protected int id; // id
	protected long type; // 任务类型 (（1:美食速递2:怪兽战斗3:急速物流4:科技脑洞5:美食速递）)
	protected int quality; // 任务品质 (1:N2:R3:SR4:SSR)
	protected int priority; // 刷新权重
	protected int num; // 所需点数
	protected String reward; // 奖励

	public UnionBusinessModel() {
	}

	public UnionBusinessModel(JsonObject obj) {
		id = obj.containsKey("id") ? obj.getInteger("id") : 0;
		type = obj.containsKey("type") ? obj.getLong("type") : 0;
		quality = obj.containsKey("quality") ? obj.getInteger("quality") : 0;
		priority = obj.containsKey("priority") ? obj.getInteger("priority") : 0;
		num = obj.containsKey("num") ? obj.getInteger("num") : 0;
		reward = obj.containsKey("reward") ? obj.getString("reward") : "";
	}

	public int getId() {
		return id;
	}

	public long getType() {
		return type;
	}

	public int getQuality() {
		return quality;
	}

	public int getPriority() {
		return priority;
	}

	public int getNum() {
		return num;
	}

	public String getReward() {
		return reward;
	}

}
